package com.drill.config;

import org.beetl.core.GroupTemplate;
import org.beetl.ext.jfinal.BeetlRenderFactory;

import com.drill.base.beelt.BeeltFunctions;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jflyfox.jfinal.config.JflyfoxConfig;
import com.jflyfox.util.Config;

/**
* @auto ket
* @date 2016年6月23日 上午9:45:36
*/

public class BaseConfig extends JflyfoxConfig {

	@Override
	public void afterJFinalStart() {
		// TODO Auto-generated method stub
		super.afterJFinalStart();
	}

	@Override
	public void beforeJFinalStop() {
		// TODO Auto-generated method stub
		super.beforeJFinalStop();
	}

	@Override
	public void configConstant(Constants me) {
		// TODO Auto-generated method stub
		
		super.configConstant(me);
		
		me.setMainRenderFactory(new BeetlRenderFactory());
		GroupTemplate groupTemplate = BeetlRenderFactory.groupTemplate;
		groupTemplate.registerFunctionPackage("flyfox", BeeltFunctions.class);
		
		//GroupTemplate groupTemplate = BeetlRenderFactory.groupTemplate;
		
	}

	@Override
	public void configHandler(Handlers me) {
		// TODO Auto-generated method stub
		super.configHandler(me);
	}

	@Override
	public void configInterceptor(Interceptors me) {
		// TODO Auto-generated method stub
		super.configInterceptor(me);
	}

	@Override
	public void configPlugin(Plugins me) {
		// TODO Auto-generated method stub
		super.configPlugin(me);
	}

	@Override
	public void configRoute(Routes me) {
		// TODO Auto-generated method stub
		super.configRoute(me);
	}

	
	

}
